import Layout from "@/layout"
const childHealthRouter = {
  path: "/child-health",
  component: Layout,
  redirect: "/child-health/register",
  alwaysShow: true,
  name: "儿童保健",
  meta: {
    title: "儿童保健",
    icon: "children"
  },
  children: [
    {
      path: "register",
      component: () => import("@/views/child-health/register/index.vue"),
      name: "新生儿登记",
      meta: {
        title: "新生儿登记",
        icon: "children"
      }
    },
    {
      path: "visit",
      component: () => import("@/views/child-health/visit/index.vue"),
      name: "新生儿访视",
      meta: {
        title: "新生儿访视",
        icon: "children"
      }
    },
    {
      path: "/baby-test",
      component: () => import("@/views/child-health/baby-test/index.vue"),
      name: "儿童健康体检",
      redirect: "/child-health/baby-test/first-test/index.vue",
      alwaysShow: true,
      meta: {
        title: "儿童健康体检",
        icon: "children"
      },
      children: [
        {
          path: "first-test",
          component: () =>
            import("@/views/child-health/baby-test/first-test/index.vue"),
          name: "1~2岁健康检查",
          meta: {
            title: "1~2岁健康检查",
            icon: "children"
          }
        },
        {
          path: "second-test",
          component: () =>
            import("@/views/child-health/baby-test/second-test/index.vue"),
          name: "1岁以内健康检查",
          meta: {
            title: "1岁以内健康检查",
            icon: "children"
          }
        },
        {
          path: "third-test",
          component: () =>
            import("@/views/child-health/baby-test/third-test/index.vue"),
          name: "3~6岁健康检查",
          meta: {
            title: "3~6岁健康检查",
            icon: "children"
          }
        }
      ]
    },
    {
      path: "health-control",
      component: () => import("@/views/child-health/health-control/index.vue"),
      name: "中医药健康管理",
      meta: {
        title: "中医药健康管理",
        icon: "children"
      }
    }
  ]
}
export default childHealthRouter
